package com.api.shopapi.service;


import com.api.shopapi.entity.OrderBusinessAppraise;
import com.api.shopapi.entity.dto.OrderBusinessAppraiseDTO;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderBusinessAppraiseService {

    int insert(OrderBusinessAppraise orderBusinessAppraise);

    int delete(String orderBusinessAppraiseCode);

    int update(OrderBusinessAppraise orderBusinessAppraise);

    List<OrderBusinessAppraise> getList();

    OrderBusinessAppraise getByOrderBusinessAppraiseCode(String orderBusinessAppraiseCode);

    OrderBusinessAppraise getByOrderBusinessCode(String orderBusinessCode);


    //商家代表下的订单的评论
    List<OrderBusinessAppraiseDTO> getListByBusinessTopCodeBusinessCode(String businessTopCode, String businessCode);
    PageInfo<OrderBusinessAppraiseDTO> getPageInfoByBusinessTopCodeBusinessCode(int pageNum,
                                                                                                int pageSize,
                                                                                                String businessTopCode,
                                                                                                String businessCode);



    //政府下的订单的评论
    List<OrderBusinessAppraiseDTO> getListByGovernmentCodeBusinessCode(String governmentCode, String businessCode);
    PageInfo<OrderBusinessAppraiseDTO> getPageInfoByGovernmentCodeBusinessCode(int pageNum,
                                                                                int pageSize,
                                                                                String governmentCode,
                                                                                String businessCode);



    //所有评价（居委会，街道）
    List<OrderBusinessAppraiseDTO> getListByZoneCode(String zoneCode);
    PageInfo<OrderBusinessAppraiseDTO> getPageInfoByZoneCode(int pageNum,
                                                             int pageSize,
                                                             String zoneCode);


    PageInfo<OrderBusinessAppraiseDTO> getBusinessPageList(int pageIndex,int pageSize,String businessCode);

    //服务人员查看订单评价
    PageInfo<OrderBusinessAppraiseDTO> getBusinessPageListServe(int pageIndex,int pageSize,String businessCode,String zoneCode);

    PageInfo<OrderBusinessAppraiseDTO> getAppraisePageByServer(int pageIndex,int pageSize,String userCode);

    PageInfo<OrderBusinessAppraiseDTO> getGovernmentPageList(int pageIndex,int pageSize,String government);

    PageInfo<OrderBusinessAppraiseDTO> getJWHAndJDPageList(int pageIndex,int pageSize,String zoneCode);


    PageInfo<OrderBusinessAppraiseDTO> getPageToGovPlatform(int pageIndex, int pageSize, String governmentCode, String businessCode);
}
